package com.java.second_goods.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 活动对象 tb_promotion
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tb_promotion")
public class Promotion extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 活动ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /** 活动标题 */
    private String title;

    /** 活动描述 */
    private String description;

    /** 活动图片URL */
    private String image;

    /** 有效期 */
    private String validDate;

    /** 活动类型：discount-优惠折扣,new-新品上市,season-季节特选 */
    private String type;

    /** 活动详情 */
    private String content;

    /** 关联优惠券ID */
    private Integer couponId;

    /** 状态：1-有效，0-无效 */
    private Integer status;
}